<?php
// Game Core
// Require in each PHP page
// Use:
//      require_once('include/game_core.php');

    if (!isset($_SESSION)) 
            session_start();
    // CONST
    define('DS', DIRECTORY_SEPARATOR);
    define('ROOT', dirname(dirname(__FILE__)));
    
    define('GLOBAL_CONFIG'      ,ROOT . DS . 'include' . DS . 'game_config.php');    
    require_once (GLOBAL_CONFIG);
    
    
    // FILES
    define('DB_FILE',ROOT . DS . 'include' . DS . 'db.php');
    define('USER_CONTROLLER_FILE',ROOT . DS . 'include' . DS . 'controllers' . DS . 'user_controller.php');
    define('ADMIN_CONTROLLER_FILE',ROOT . DS . 'include' . DS . 'controllers' . DS . 'admin_controller.php');
    
    // TOOLS
    define('VALIDATION_FILE',ROOT . DS . 'include' . DS . 'tools' . DS . 'validation.php');
    define('RANDOM_FILE',ROOT . DS . 'include' . DS . 'tools' . DS . 'random.php');
    define('GAME_TABLE_FILE',ROOT . DS . 'include' . DS . 'tools' . DS . 'game_table.php');
    
    // VIEW BASE
    define('VIEW_BASE_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'view_base.php');
    define('VIEW_BASE_HEADER_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'view_base' . DS . 'header.php');
    define('VIEW_BASE_MENU_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'view_base' . DS . 'menu.php');
    define('VIEW_BASE_FOOTER_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'view_base' . DS . 'footer.php');
    
    //VIEW Side Bars
    define('VIEW_SIDE_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'side.php');
    define('VIEW_SIDE_LOGIN_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'side' . DS . 'login.php');
    define('VIEW_SIDE_USER_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'side' . DS . 'user.php');
    define('VIEW_SIDE_HALL_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'side' . DS . 'hall.php');

    //VIEW Register
    define('VIEW_REGISTER_AVATAR_COMBO',ROOT . DS . 'include' . DS . 'views' . DS . 'registration' . DS . 'avatar_combo.php');
    
    //VIEW Game Page
    define('GAME_VIEW_FILE',ROOT . DS . 'include' . DS . 'views' . DS . 'game_view.php');
    
    //Game Controller
    define('GAME_CONTROLLER_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller.php');
    define('GAME_INIT_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_init.php');
    define('BASE_CARD_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'base_card.php');
    define('CARDS_DECK_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'cards_deck.php');
    define('GAME_CONFIG_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'config.php');
    define('GAME_LOGIC_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'game_logic.php');
    define('PLACED_CARD_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'placed_card.php');
    define('PLAYER_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'player.php');
    define('UTILS_FILE' ,ROOT .DS. 'include' .DS. 'controllers' .DS. 'game_controller' .DS. 'utils.php');
    
    //require_once (GLOBAL_CONFIG);
    